﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeFile="CommonProducts.aspx.cs" Inherits="CommonProducts" Title="无标题页" %>
<%@ Register Assembly="GoShopping.Components" Namespace="BaseText" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
       
        .pro_des
        {
       	   padding-left:20px;
       	   text-align:left;
       	   font-size:9pt;
       	}
        .pro_pic
        {
            width: 386px;
        }
        .style4
        {
            width: 427px;
        }
        #TextArea1
        {
            width: 458px;
            height: 88px;
        }
        .style6
        {
            width: 450px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" class="pro_des">
        <tr>
            <td class="pro_pic" rowspan="11">
                <asp:Image ID="Image1" runat="server" Height="200px" Width="330px" />
            </td>
            <td align="left" class="style4">
                <asp:Label ID="Label1" runat="server" Text="商品详细信息" Font-Bold="True"></asp:Label>
                <input id="hiddenPrdtID" type="hidden" runat="server"/>
            </td>
        </tr>
        <tr>
            <td align="left" class="style4">
                商品名称:<asp:Label ID="lblPrdtName" runat="server" Text="天逸笔记本"></asp:Label>
                                     </td>
        </tr>
        <tr>
            <td align="left" class="style4">
                市场价:<asp:Label ID="lblMarketPrice" runat="server" Text="100"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style4">
                Goshopping价:<asp:Label ID="lblSalePrice" runat="server" Text="80"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style4">
                数量:<asp:Label ID="lblCount" runat="server" Text="10"></asp:Label>
                <asp:Label ID="lblOut" runat="server" ForeColor="Red" Text="有货"></asp:Label>
                有货,缺货登记(按照库存显示)</td>
        </tr>
        <tr>
            <td align="left" class="style4">
                附件:<asp:Label ID="lblAccessory" runat="server" Text="商务包"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style4">
                赠品:<asp:Label ID="lblFree" runat="server" Text="清洁套餐"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style4">
                主要卖点:<asp:Label ID="Label8" runat="server" Text="时尚,科技"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style4">
                颜色选择:<asp:Panel ID="Panel1" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="left" class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="left" class="style4">
                <asp:LinkButton ID="btnAddToCart" runat="server" onclick="btnAddToCart_Click">[加入购物车]</asp:LinkButton>
                <asp:LinkButton ID="btnFavourite" runat="server" onclick="btnFavourite_Click">[收藏]</asp:LinkButton>
                <asp:LinkButton ID="btnStockout" runat="server" onclick="btnStockout_Click">[缺货登记]</asp:LinkButton>
                <%--<input type="button" id="AComment" value="评论" onclick="giveRemark()"/>--%>
                <a id="Button1" href="#1" >评论</a>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div style=" text-align:left; padding-top:20px;"  runat="server" id="divUsefulInfo">
                    Goshoping为您搜集的信息,希望对你有用:<br />
                    <asp:Literal ID="ltrUseful" runat="server"></asp:Literal>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div align="left" runat="server" id="divAssemblyPrdt">
                    最佳组合:(相关产品)<br />
                    <asp:ListView ID="lvRelatedPrdts" runat="server" GroupItemCount="5">
                        <GroupTemplate>
                            <tr>
                                <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                            </tr>
                        </GroupTemplate>
                        <LayoutTemplate>                        
                            <table style="width:619px">
                                <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                            </table>
                            <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvPrdts" 
                                PageSize="5" Visible="false">
                                <Fields>
                                    <asp:NumericPagerField />
                                </Fields>
                            </asp:DataPager>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <td>
                                <asp:Image ID="Image1" runat="server" />
                                <br />
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("BriefIntroduction") %>'></asp:Label>
                                <br />
                                <asp:LinkButton ID="btnPrdtID" runat="server" 
                                    CommandArgument='<%# Eval("ID") %>' CommandName="Prdt" 
                                    Text='<%# Eval("Name") %>'>商品姓名</asp:LinkButton>
                                <br />
                            </td>
                        </ItemTemplate>
                    </asp:ListView>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div align="left" runat="server" id="divDescription">
                    产品描述:<br />
                    <asp:Literal ID="ltrDescrip" runat="server"></asp:Literal>
                    <br />
                </div>
            </td>
        </tr>
<%--        <tr>
            <td colspan="2">
                <div align="left" runat="server" id="divAccessory">
                    推荐配件:(配件,accessory)<br />
                    <asp:Literal ID="Literal2" runat="server"></asp:Literal>
                    <br />
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div align="left" runat="server" id="divBasic">
                    基本信息:<br />
                    <asp:Repeater ID="Repeater1" runat="server">
                    </asp:Repeater>
                    <br />
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div align="left" runat="server" id="divPackageList">
                    包装清单:<br />
                    <asp:Repeater ID="Repeater2" runat="server">
                    </asp:Repeater>
                    <br />
                </div>
            </td>
        </tr>--%>
        
        <tr>
            <td colspan="2">
                <div align="left" runat="server" id="divBrand">
                    品牌介绍<br />
                    <asp:Literal ID="ltrBrandDescrip" runat="server"></asp:Literal>
                    <br />
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div align="left" runat="server" id="divSupplyer">
                    生产商信息:<br />
                    <asp:Literal ID="ltrSupplyer" runat="server"></asp:Literal>
                    <br />
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td colspan="2"></td>
        </tr>
    </table>
    <table style="width:800px;" cellpadding="0" cellspacing="0">
    <tr>
    <td align="left">
    <a name="1"></a>
        <asp:Repeater ID="rptRemark" runat="server">
        <HeaderTemplate>
            <table style="width:600px">
        </HeaderTemplate>
        <ItemTemplate>
          <tr>
            <td align="left" style="background-color:#CCFFCC;">
                标题:<asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
            </td>
            <td align="right" style="background-color:#CCFFCC">
                用户名:<asp:Label ID="lblUser" runat="server" Text='<%# GetRelatedColumn.GetUserName(Eval("UserID")) %>'></asp:Label>
            </td>
            <td align="right" style="background-color:#CCFFCC">
                评论时间:<asp:Label ID="lblDate" runat="server" Text='<%# Eval("CreateDate","{0:d}") %>'></asp:Label>
            </td>
          </tr>
          <tr>
            <td style="text-indent:10px">
                内容:<asp:Label ID="Label3" runat="server" Text='<%# Eval("Content") %>'></asp:Label><br />
            </td>
          </tr>
          <tr>
            <td style="text-indent:20px">
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("ReplaceText")==null?"":"管理员回复:"+Eval("ReplaceText") %>'></asp:Label>
            </td>
          </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
          <tr>
            <td align="left" style="background-color:#CCFFCC;">
                标题:<asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
            </td>
            <td align="right" style="background-color:#CCFFCC">
                用户名:<asp:Label ID="lblUser" runat="server" Text='<%# GetRelatedColumn.GetUserName(Eval("UserID")) %>'></asp:Label>
            </td>
            <td align="right" style="background-color:#CCFFCC">
                评论时间:<asp:Label ID="lblDate" runat="server" Text='<%# Eval("CreateDate","{0:d}") %>'></asp:Label>
            </td>
          </tr>
          <tr>
            <td style="text-indent:10px">
                内容:<asp:Label ID="Label3" runat="server" Text='<%# Eval("Content") %>'></asp:Label><br />
            </td>
          </tr>
          <tr>
            <td style="text-indent:20px">
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("ReplaceText")==null?"":"管理员回复:"+Eval("ReplaceText") %>'></asp:Label>
            </td>
          </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
          </table>
        </FooterTemplate>
        </asp:Repeater>
        </td>
    </tr>
    <tr>
    <td align="left">
    <div id="remarkLogin" runat="server">
     <table cellpadding="0" cellspacing="0" style="width: 600px">
        <tr>
            <td align="left" class="style6">
                您还没有登录!请您登录后发表评论!</td>
            <td align="right" style="width:200px">
                <a href="Login.aspx">登录</a>
            </td>
        </tr> 
     </table>
     </div>
     <div id="remarkDo" runat="server">
     <table cellpadding="0" cellspacing="0" style="width: 600px"> 
        <tr>
            <td align="left" class="style6">
                标题:<cc1:ZLTextBox ID="txtTitle" runat="server" Width="400px"/></td>
            <td align="right" style="width:200px">
                用户名:<asp:Label ID="lblUser" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2" valign="top" align="left">
                <asp:TextBox ID="txtRemarks" runat="server" Height="200px" TextMode="MultiLine" 
                    Width="600px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="btnRemark" runat="server" Text="评论" onclick="btnRemark_Click"
                    style="height: 26px" Width="94px" />
            </td>
        </tr>
    </table>
    </div>
    </td>
    </tr>
    </table>
    <div id="divRemark" runat="server">
    </div>
    <script type="text/javascript">
    function giveRemark()
    {
        var divRemark=document.getElementById("ctl00_ContentPlaceHolder1_divRemark");
        divRemark.style.display="block";
    }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content_rightarea" Runat="Server">
</asp:Content>

